<template>
	<view>
		<view class="person-item">
			<view class="portrait">
				<image class="portrait-icon" mode="aspectFit" src="/static/image/user.png"></image>
			</view>
			<view class="nickname">
				{{userinfo.userName}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			userinfo:{
				type:Object,
				default:{}
			}
		},
		data() {
			return {
				
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.person-item{
		display: flex;
		.portrait{
			width:60rpx;
			height: 60rpx;
			background-color: #c9c9c9;
			border-radius: 100%;
			overflow: hidden;
			.portrait-icon{
				width: 100%;
				height: 100%;
			}
		}
		.nickname{
			line-height: 60rpx;
			margin-left: 20rpx;
		}
	}
</style>
